<template>
	<view style="background: #F5F5F5;height: 100vh;">
		<u-navbar :fixed="true" :autoBack="false" :placeholder="true" :bgColor="`${navbarBackground}`">
			<view slot="left"></view>
			<view slot="center" style="width: 100%">
				<view class="flex align-center">
					 <image src="../../static/topic/7400.png" mode="aspectFit" style="width:50rpx;height: 50rpx;margin-left: 15rpx;" @tap="goback"></image>
					<view style=" margin-left:25rpx;font-size:32rpx;"></view>
					<view @click="toSearch" class="flex align-center navbar"
						style="flex-direction: row; margin-left: 23rpx; position:relative; ">
						<view 
							style="width: 30rpx; height: 30rpx; margin: 0 25rpx 0 30rpx"></view>
						<text style="color: #999999; font-size: 28rpx">木槿整木设计工作室</text>
					</view>
					<view style="width:60rpx; height:60rpx">
						<image src="../../../static/tabbar/8264.png" mode="" style="width: 100%; height: 100%">
						</image>
					</view>
				</view>
			</view>
		</u-navbar>
		<view style="height:400rpx;padding:30rpx ;margin-top:10rpx;">
			<view class="flex justify-between" @click="datalist(1)">
				<view class="teitegong" style="font-size: 26rpx;">推荐关注</view>
			</view>
			<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll" scroll-left="120">
				<view class="flex">
					<view class="followList flex flex-direction align-center"
						style="padding:20rpx 0 ;margin-right:30rpx;" v-for="(item,index) in followData" :key="index">
						<u-avatar :src="item.image" mode="square"></u-avatar>
						<view class="followList-name">{{item.name}}</view>
						<view class="followList-title">{{item.title}}</view>
						<view class="Follow">+&nbsp;关注</view>
					</view>
				</view>
			</scroll-view>
		</view>
		<view style="height: 170rpx;margin-top: 20rpx;">
			<view class="flex" style="flex-direction: row; width: 100%">
				<view v-for="(item, index) in cid2" :key="index" class="big-tab">
					<image :src="item.Image" mode="" style="width: 90rpx; height:90rpx"></image>
					<view style="font-size: 27rpx; color: #302f3d; margin-top: 10rpx">{{ item.name }}
					</view>
				</view>
			</view>
		</view>
		<view style="margin:20rpx;">
			<view class="flex flex-direction align-center">
				<image src="/static/me/follow7.png" mode="aspectFit"
					style="margin-bottom: 10rpx;width: 680rpx;height: 340rpx;"></image>
				<image src="/static/me/kec6.png" mode="aspectFit"
					style="margin-bottom: 10rpx;width: 680rpx;height: 340rpx;"></image>
			</view>
		</view>
		<view style="height:100rpx;">
			<button style="border:3rpx solid  black;width: 260rpx;height:70rpx;line-height: 70rpx;">
				MORE
			</button>
		</view>
	</view>
</template>

<script>
	export default {
		components: {
		},
		data() {
			return {
				scrollTop: 0,
				// navbar 背景
				navbarBackground: "#EBEAE9",
				followData: [{
						image: '/static/me/hear.png',
						name: '罗春花',
						title: '偶买噶家具设计事务所合伙人',
					},
					{
						image: '/static/cliend/plot.png',
						name: '任布苟',
						title: '魔仙堡木作设计事务所设计师',
					},
					{
						image: '/clientEnd/static/topic/193.png',
						name: '胡丽景',
						title: '井园木业集团工程部技术总监',
					},
					{
						image: '/clientEnd/static/topic/194.png',
						name: '白日梦',
						title: '钞能力家具设计事务所合伙人',
					},
					{
						image: '/clientEnd/static/topic/7275.png',
						name: '丑八怪',
						title: '偶买噶家具设计事务所合伙人',
					},

				],
				cid2: [{
						name: "系统课程",
						Image: "/static/me/kec1.png",
					},
					{
						name: "设计笔记",
						Image: "/static/me/kec2.png",
					},
					{
						name: "安装教程",
						Image: "/static/me/kec3.png",
					},
					{
						name: "设计问答",
						Image: "/static/me/kec4.png",
					},
					{
						name: "我的课程",
						Image: "/static/me/kec5.png",
					}
				],
			}
		},
		methods: {
			datalist() {},
			toSearch() {
				uni.navigateTo({
					url: "/pages/index/search",
					animationType: 'zoom-fade-out',
					animationDuration: 500,
				});
			},
			scroll: function(e) {
				this.scrollTop = e.detail.scrollTop
			},
			goback(){
				uni.navigateBack()
			}
		}
	}
</script>

<style scoped>
	.navbar {
		width: 540rpx;
		height: 64rpx;
		background: #ffffff;
		border-radius: 10rpx;
		margin-right: 24rpx;
	}
	.scroll-view_H {
		white-space: nowrap;
		width: 100%;
		margin-top: 20rpx;
	}

	.followList {
		height: 280rpx;
		width: 180rpx;
		border-radius: 28rpx;
		background: rgba(255, 255, 255, 1);
		border: 1rpx solid rgba(0, 0, 0, 0, 1);
		box-shadow: 0 1rpx 7rpx 0 rgba(0, 0, 0, 0.1);
	}

	.followList-name {
		font-size: 26rpx;
		font-family: Microsoft YaHei;
		font-weight: 700;
		color: rgba(33, 33, 33, 1);
	}

	.followList-title {
		color: rgba(33, 33, 33, 0.6);
		font-size: 20rpx;
		height: auto;
		width: 180rpx;
		display: inline-block;
		word-break: break-all;
		text-overflow: ellipsis;
		word-wrap: break-word;
		white-space: pre-wrap;
		padding: 0 10rpx;
	}

	.Follow {
		width: 120rpx;
		height: 35rpx;
		background: #CCCCCC;
		color: #000000;
		margin-top: 10rpx;
		text-align: center;
		border-radius: 20rpx;
		font-size: 23rpx;
	}

	.paragraph {
		width: 100%;
		height: 26rpx;
		background: #F5F5F5;
	}
	.teitegong {
		color: #06121E;
		font-size: 24rpx;
		font-weight: 700;
	}
	.textImage {
		width: 16rpx;
		height: 28rpx;
		margin: 5rpx 0;
	}
	.big-tab {
		height: 156rpx;
		width: calc(20% - 20rpx);
		display: flex;
		margin: 0 10rpx;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		text-align: center;
	}
</style>
